From: Jasper St. Pierre Date: Sat, 8 Dec 2012 07:41:20 +0000 (-0500) Subject: networkAgent: Only unregister if we've registered X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~5244 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=15cac0157c5ee66c150a2fa1fa254bbbebd9ac09;p=gnome-shell.git networkAgent: Only unregister if we've registered It's possible to turn auto_register back on, but not immediately be registered. Don't cause a (harmless) critical in this case. https://bugzilla.gnome.org/show_bug.cgi?id=689884 --- diff --git a/js/ui/components/networkAgent.js b/js/ui/components/networkAgent.js index d1c984643..e214cd87c 100644 --- a/js/ui/components/networkAgent.js +++ b/js/ui/components/networkAgent.js @@ -613,7 +613,8 @@ const NetworkAgent = new Lang.Class({ this._vpnRequests = { }; this._native.auto_register = false; - this._native.unregister(); + if (this._native.registered) + this._native.unregister(); }, _newRequest: function(agent, requestId, connection, settingName, hints, flags) {